import requests

def parse_url(url):
    headers={

    'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36',
    'Referer': 'https://www.lagou.com/jobs/list_python?labelWords=&fromSearch=true&suginput=',
    'Cookie': 'user_trace_token=20190128163744-fbc0d5cb-22d7-11e9-b822-5254005c3644; LGUID=20190128163744-fbc0da67-22d7-11e9-b822-5254005c3644; sensorsdata2015jssdkcross=%7B%22distinct_id%22%3A%221693804d98b31b-09037b0c68253f-3e70055f-1049088-1693804d98c6b1%22%2C%22%24device_id%22%3A%221693804d98b31b-09037b0c68253f-3e70055f-1049088-1693804d98c6b1%22%7D; index_location_city=%E5%85%A8%E5%9B%BD; _ga=GA1.2.2068343149.1548664664; _gid=GA1.2.705604554.1554528396; LGSID=20190406132633-8a7b31df-582c-11e9-bd7b-5254005c3644; JSESSIONID=ABAAABAAAFCAAEGC4AF69CAFA44FE7B0EDA34FF14FF0185; Hm_lvt_4233e74dff0ae5bd0a3d81c6ccf756e6=1554364643,1554528396,1554529915; TG-TRACK-CODE=search_code; _gat=1; X_HTTP_TOKEN=af7940ed6d63d0874111354551eea683fb7824e6f9; Hm_lpvt_4233e74dff0ae5bd0a3d81c6ccf756e6=1554531117; LGRID=20190406141154-e01949fc-5832-11e9-bd7c-5254005c3644; SEARCH_ID=9ce405e50dd54e4d89b0dec3225567f2'

    }
    data = dict(first='true', pn='3', kd='java')
    print(data)
    r = requests.post(url, headers=headers, data=data)
    print(r.json())


if __name__ == '__main__':
    url = 'https://www.lagou.com/jobs/positionAjax.json?needAddtionalResult=false'
    parse_url(url)